Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP Add pulp-ui to pulp image #677

Draft
wants to merge 1 commit into
base: latest
Choose a base branch
from
Draft

Conversation

gerrod3
Copy link
Contributor

@gerrod3 gerrod3 commented Oct 11, 2024

There's many different ways to serve these files, here's one way I chose. Would like some feedback on this approach.

TODO:

  • Add logic in CI to find ui url
  • Add support for nightly image??
  • Add support for templating a config file for values like API_ROOT (maybe in a future PR once we decide how we will do this in the ui)
  • Add issue changelog

Copy link
Member

@mdellweg mdellweg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it a lot.


RUN <<EOF
if [[ "$PULP_UI_URL" ]]; then
mkdir -p /usr/share/nginx/static/pulp_ui
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the new /var/www ?
It's OK...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where should these files live? I was thinking I could put them in the pulp static directory (default: /var/lib/operator/static/), but I was worried if the user ran collectstatic with --clean then they would lose their UI as well.


ENV PULP_UI=true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably depend on PULP_UI_URL... Or let's just make PULP_UI_URL the env var?

@@ -105,6 +105,17 @@ http {

include pulp/*.conf;

{% if ui | default(false) -%}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be if ui_url != ""?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants